define(function(require, exports, module) {
	//#chioce-search
	var getSearchList = {
		getSearchItem: function(searchId) {
			mui("body").on("tap", "" + searchId + "", function() {
				$('.pop-tab .pop-tab-titleitem').find('span').removeClass('mui-icon-arrowup');
				$('.pop-tab .pop-tab-titleitem').find('span').addClass('mui-icon-arrowdown');
				$('.pop-tab .pop-tab-titleitem').removeClass('pop-select');
				$(".pop-tab-conitem").hide();
				if($("#searchContent").length === 0) {
					$("body").append("<div id='searchContent' class='searchContent'>" +
						"<input id='searchText' type='text' class='mui-input-clear searchContent' placeholder='请输入关键字进行搜索'>" +
						"</div>");
					$("body").append("<div class='mui-backdrop mui-active pop-back popsearch'></div>");
					$(".popsearch").css("display", "block");
					$("#searchContent").slideDown(300);
				} else {
					if($("#searchContent").css("display") == "block") {
						$(".popsearch").css("display", "none");
					} else {
						$(".popsearch").css("display", "block");
					}
					$("#searchContent").slideToggle(300);
				}
			});
			mui("body").on("tap", ".popsearch", function() {
				$("#searchContent").slideUp(300);
			});
		},
		noSearchTap: function(noSearchId) {
			mui("body").on("tap", "" + noSearchId + "", function() {
				if($("#searchContent").length > 0) {
					$(".popsearch").css("display", "none");
					$("#searchContent").css("display", "none");
				}
			});
		}
	};
	//配置seajs外部调用接口
	module.exports = getSearchList;
});